package cn.pfund.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @description 管理日志 
 * @author zhaominglei qq:351024274，专注于网站、app和游戏开发。
 * @date 2014年10月25日
 */
@Entity
@Table(name = "pfund_admin_log")
public class AdminLog extends BaseEntity {
	private static final long serialVersionUID = -6807018693082788701L;
	/** ip */
	private String ip;
	/** url */
	private String url;
	/** 请求头 */
	private String httphead;
	/** 操作人 */
	private Admin operator;

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(columnDefinition="LONGTEXT")
	public String getHttphead() {
		return httphead;
	}

	public void setHttphead(String httphead) {
		this.httphead = httphead;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="operator_id")
	public Admin getOperator() {
		return operator;
	}

	public void setOperator(Admin operator) {
		this.operator = operator;
	}
}
